![]() |
Kinetis SDK API Reference Manual
1.0.0-beta
Freescale Semiconductor, Inc.
|
The section describes the programming interface of the OSC HAL driver. More...
Macros | |
| #define | kOscCapacitorMask (OSC_CR_SC2P_MASK | OSC_CR_SC4P_MASK | OSC_CR_SC8P_MASK | OSC_CR_SC16P_MASK) |
| Oscillator capacitor load configurations mask. | |
Enumerations | |
| enum | osc_instance_t { kOsc0 = 0 } |
| Oscillator instance. More... | |
| enum | osc_capacitor_config_t { kOscCapacitor2p = OSC_CR_SC2P_MASK, kOscCapacitor4p = OSC_CR_SC4P_MASK, kOscCapacitor8p = OSC_CR_SC8P_MASK, kOscCapacitor16p = OSC_CR_SC16P_MASK } |
| Oscillator capacitor load configurations. More... | |
oscillator control APIs | |
| void | osc_hal_enable_external_reference_clock (osc_instance_t instance) |
| Enables the external reference clock for oscillator. More... | |
| void | osc_hal_disable_external_reference_clock (osc_instance_t instance) |
| Disables the external reference clock for oscillator. More... | |
| void | osc_hal_enable_external_reference_clock_in_stop_mode (osc_instance_t instance) |
| Enables the external reference clock in stop mode. More... | |
| void | osc_hal_disable_external_reference_clock_in_stop_mode (osc_instance_t instance) |
| Disables the external reference clock in stop mode. More... | |
| void | osc_hal_enable_capacitor_config (osc_instance_t instance, uint32_t capacitorConfigs) |
| Enables the capacitor configuration for oscillator. More... | |
| void | osc_hal_disable_capacitor_config (osc_instance_t instance, uint32_t capacitorConfigs) |
| Disables the capacitor configuration for specific oscillator. More... | |
| enum osc_instance_t |
| void osc_hal_enable_external_reference_clock | ( | osc_instance_t | instance | ) |
This function enables the external reference clock output for the oscillator - that is the OSCERCLK. This clock is used by many peripherals. It should be enabled at an early system initialization stage to ensure the peripherals could select it and use it.
| instance | Oscillator instance |
| void osc_hal_disable_external_reference_clock | ( | osc_instance_t | instance | ) |
This function disables the external reference clock output for oscillator - that is the OSCERCLK. This clock is used by many peripherals. It should be enabled at an early system initialization stage to ensure the peripherals could select and use it.
| instance | Oscillator instance |
| void osc_hal_enable_external_reference_clock_in_stop_mode | ( | osc_instance_t | instance | ) |
This function enables the external reference clock (OSCERCLK) when MCU enters Stop mode.
| instance | Oscillator instance |
| void osc_hal_disable_external_reference_clock_in_stop_mode | ( | osc_instance_t | instance | ) |
This function disables the external reference clock (OSCERCLK) when MCU enters Stop mode.
| instance | Oscillator instance |
| void osc_hal_enable_capacitor_config | ( | osc_instance_t | instance, |
| uint32_t | capacitorConfigs | ||
| ) |
This function enables the specified capacitors configuration for the oscillator. This should be done in the early system level initialization function call based on system configuration.
| instance | Oscillator instance |
| capacitorConfig | Capacitor configurations. Combination of OSC_CR_SCxP_MASK |
| void osc_hal_disable_capacitor_config | ( | osc_instance_t | instance, |
| uint32_t | capacitorConfigs | ||
| ) |
This function enables the specified capacitors configuration for the oscillator.
| instance | Oscillator instance |
| capacitorConfig | Capacitor configurations. Combination of OSC_CR_SCxP_MASK |